//
//  QIBaseViewController.swift
//  MLYY
//
//  Created by 秦江涛 on 2023/10/8.
//

import UIKit

class QIBaseViewController: UIViewController {

    override func viewDidLoad() {
        super.viewDidLoad()
        view.backgroundColor = .white

        
    }
    
    
    /// 显示渐变色
    func showGradientColor() {
        self.view.addGradientColor(fromColors: [ColorWithStr("#FFB2B5").cgColor, ColorWithStr("#FCDFE0").cgColor, ColorWithStr("#FFFBFB").cgColor], locationArr: [0, 0.5, 1.0], with: .topToBottom)
    }
    
    @objc func backBtnClick() {
        navigationController?.popViewController(animated: true)
    }
    
    lazy var backBtn: UIButton = {
        let backBtn = UIButton().then {
            $0.frame = CGRect(x: 0, y: 0, width: 44, height: 44)
            $0.setImage(UIImage(named: "back"), for: .normal)
            $0.addTarget(self, action: #selector(backBtnClick), for: .touchUpInside)
        }
        return backBtn
    }()
    lazy var rightBtn: UIButton = {
        let rightBtn = UIButton().then {
            $0.frame = CGRect(x: 0, y: 0, width: 44, height: 44)
            $0.titleLabel?.font = SYSFONT(ofSize: 14)
            $0.setTitle("", for: .normal)
            $0.setTitleColor(Color333333, for: .normal)
            $0.setImage(UIImage(named: ""), for: .normal)
        }
        return rightBtn
    }()


}
